<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>ThinkCMF插件 采集插件</title>
    <meta name="description" content="ThinkCMF插件 采集插件">
    <meta name="keywords" content="ThinkCMF插件 采集插件">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminArticle/index')}">文章扩展</a></li>
        <li class="active"><a href="#">编辑扩展</a></li>
    </ul>
    <form action="{:url('/plugin/portal_promotion/admin_index/editPost',array('id'=> $promotion['id']))}" method="post" class="form-horizontal js-ajax-form margin-top-20">

        <div class="form-group">
            <label for="input-rulename" class="col-sm-2 control-label"><span class="form-required">*</span>发布时间</label>
            <div class="col-md-6 col-sm-10">
                <input class="form-control js-bootstrap-date" type="text" name="promotion[end_date]" <if condition="!empty($promotion['end_date'])" > value="{$promotion['end_date']}" </if> >
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>

<include file="public/scripts"/>

<script>  
    var postId = $('#post-id').val();
</script>

</body>
</html>
